// 模拟接口返回的数据
function generateChildren(len, parentCode, parentName, start = 1) {
  const children = []
  for (let i = start; i < start + len; i++) {
    children.push({
      name: parentName + '-菜单' + i,
      path: parentCode === 'app1' ? `/wanxiang/app1/#/views/Page1/` + i : `/wanxiang/app2/#/App/` + i
    })
  }
  return children
}
export const menus = [
  {
    code: 'app1',
    name: '应用1-vue',
    children: [
      {
        code: 'app1-0',
        name: '应用1-0',
        children: generateChildren(5, 'app1', '应用1-0', 11)
      },
      ...generateChildren(10, 'app1', '应用1')
    ]
  },
  {
    code: 'app2',
    name: '应用2-react',
    children: generateChildren(10, 'app2', '应用2')
  },
]
